package Day11;

/**
 * @author HYHwtx
 * @version 1.0
 * @date 2022/2/17 9:16
 */
//用插入法对若干个数排序（由大到小）。
public class Test09 {
    public static void main(String[] args) {
        int [] array = {10,5,7,13,92,22,37,61,1,12};
        for (int i = 0; i < array.length; i++) {
            for (int j = 0; j < array.length; j++) {
                if (array[i]>array[j]){
                    int temp = array[i];
                    array[i] = array[j];
                    array[j] = temp;
                }
            }
        }
        for (int i = 0; i < array.length; i++) {
            System.out.print(array[i]+" ");
        }
    }

}
